package com.cn.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.beanutils.BeanUtils;

import com.cn.domain.Comment;
import com.cn.domain.User;
import com.cn.service.CommentService;
import com.cn.service.UserService;
import com.cn.service.impl.CommentServiceImpl;
import com.cn.service.impl.UserServiceImpl;
import com.cn.utils.PageView;

@WebServlet("/GoToOrderJspServlet")
public class GoToOrderJspServlet extends HttpServlet {
	private CommentService cs=new CommentServiceImpl();
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		this.doGet(req, resp);
	}

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		//这个过滤器可以防止表单的重复提交
		resp.sendRedirect("/amazon/shopping.jsp");
	}
}
